﻿package Message.Game
{
    import Framework.MQ.*;
    import Framework.Serialize.*;
    import Message.Public.*;

    public class SWarningMember extends IMessageBase
    {
        public var miniPlayer:SMiniPlayer;
        public var position:int;
        public var loginOutDays:int;
        public var activity:int;
        public var chatTimes:int;
        public var contributionWeek:int;
        public var reason:int;
        public const _type:int = 16107;
        public static var _regist:SWarningMember = new SWarningMember(true);

        public function SWarningMember(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            return;
        }// end function

        override public function getType() : int
        {
            return this._type;
        }// end function

        override public function clone() : IMessageBase
        {
            return new SWarningMember();
        }// end function

        override public function __write(param1:SerializeStream) : void
        {
            this.miniPlayer.__write(param1);
            param1.writeInt(this.position);
            param1.writeInt(this.loginOutDays);
            param1.writeInt(this.activity);
            param1.writeInt(this.chatTimes);
            param1.writeInt(this.contributionWeek);
            param1.writeInt(this.reason);
            return;
        }// end function

        override public function __read(param1:SerializeStream) : void
        {
            this.miniPlayer = new SMiniPlayer();
            this.miniPlayer.__read(param1);
            this.position = param1.readInt();
            this.loginOutDays = param1.readInt();
            this.activity = param1.readInt();
            this.chatTimes = param1.readInt();
            this.contributionWeek = param1.readInt();
            this.reason = param1.readInt();
            return;
        }// end function

    }
}
